var events = require('events');
var Emitter = events.EventEmitter;
var util = require('util');
function Radio(name,hz){
    Emitter.call(this);
    this.name=name;
    this.hz=hz;
}
util.inherits(Radio,Emitter)
Radio.prototype.play = function(){
    console.log(this.name+this.hz+" opened");
}
Radio.prototype.stop = function(){
    console.log(this.name+this.hz+" closed");
}
module.exports = Radio;